/*
 * @Description: 
 * @Author: 韩双双
 * @Date: 2021-04-21 13:32:10
 * @LastEditTime: 2021-05-05 23:18:34
 * @LastEditors: 邢
 */
import {request} from 'umi'

//推荐文章
export const getAllrecommend = ()=> request('/api/article/recommend',{method:'get'})
//文章分类
export const getArticlecategory = ()=> request('/api/category',{method:'get'})
//文章标签
export const getArticletag = ()=> request('/api/tag',{method:'get'})
//轮播图
export const getArticleallrecommend = ()=> request('/api/article/all/recommend',{method:'get'})
//点击跳详情
export const getarticleDetail = (params:any)=> request(`/api/article/${params}`,{method:'get'})
//点击分类
export const getCategoryDetail = (params:any)=> request(`/api/article/category/${params}`,{method:'get'})
//点击标签
export const gettagGit = (params:any)=> request(`/api/article/tag/${params}`,{method:'get'})
//搜索
export const getsearch = (params:any)=> request('/api/search/article',{method:'get',params})
//获取更多列表内容
export const getMoreList = (page?:number,pageSize?:number,status?:string) =>request(`/api/article`,{method:'get',params:{page,pageSize,status}})